import YAML from 'yaml';
import path from 'path';
import fs from 'fs';
const getConfig = (): Promise<any> => new Promise((resolve, reject) => {
    fs.readFile(path.resolve('src', '../', 'application.yml'), {
        encoding: 'utf-8',
        flag: 'r'
    }, (err, data) => {
        if (err) {
            return reject(err);
        }
        const applicationProperties = YAML.parse(data)
        return resolve(applicationProperties)
    });
})
export default getConfig;